class Sfx extends egret.Sprite {
	private _SafeStr_275: number = 0;
	private _SafeStr_276: number = 1;
	private _SafeStr_95: number = 0;
	private _radius: number = 0;
	private _SafeStr_278: number = 0;

	public constructor() {
		super();
		this.touchEnabled = false;
		this.touchChildren = false;
	}

	private draw() {
		var g: egret.Graphics = this.graphics;
		g.clear();
		g.lineStyle(4, 0xFFFFFF, ((this._SafeStr_278 < 1) ? (1 - this._SafeStr_278) : 0));
		g.drawCircle(0, 0, this._radius);
		this._radius = (this._radius + 2);
		this._SafeStr_278 = (this._SafeStr_278 + 0.1);
	}

	private onEnterFrame(event: egret.Event) {

		if (this._SafeStr_278 > 1) {
			this._SafeStr_95 = (this._SafeStr_275);
			this.graphics.clear();
			this.filters = null;
			this.removeEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
			return;
		}
		switch (this._SafeStr_95) {
			case this._SafeStr_276:
				this.draw();
				return;
		}
	}

	public startWave(initRadius: number) {

		if (this._SafeStr_95 != this._SafeStr_275) {
			return;
		}
		this._SafeStr_95 = (this._SafeStr_276);
		this._SafeStr_278 = 0;
		this._radius = initRadius;
		this.filters = [new egret.GlowFilter(0xFFFFFF, 1)];
		this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
	}

}


